/**
 * 
 */
package com.java.test.platmanage.dto;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

/**
 * @author 游戏列表
 *
 */
public class GameListInfo implements RowMapper<GameListInfo> {

	// id主键
	private int id;

	// 游戏名称
	private String gameName;
	
	// 游戏类型
	private int gameType;
	
	// 游戏类型名称
	private String gameTypeName;
	
	

	// 平台id
	private int platId;

	// 所属平台
	private String platName;

	// 游戏编码
	private String gameCode;

	// 虚拟人数
	private int fictitiousNumber;
	
	// 虚拟人数最大
	private int fictitiousNumberMax;
	

	// 地区id
	private String areaId;

	// 地区名称
	private String areaName;

	// 开放语言
	private String openLanguage;

	// 排序
	private int sort=0;

	// 状态 （1:启用 ，0：禁用）
	private int status;

	// 备注
	private String content;
	
	// 支持货币
	private Long foundTypeId;
	
	// 货币名称
	private String foundName;
	
	
	// 是否热门 （1：热门，0:非热门）
	private int isNotHot;

	
	// 是否老虎机热门（1：热门，0:非热门）
	private int isNotTigerHot;
	
	
	
	
	
	

	public int getIsNotTigerHot() {
		return isNotTigerHot;
	}

	public void setIsNotTigerHot(int isNotTigerHot) {
		this.isNotTigerHot = isNotTigerHot;
	}

	public int getIsNotHot() {
		return isNotHot;
	}

	public void setIsNotHot(int isNotHot) {
		this.isNotHot = isNotHot;
	}

	public String getFoundName() {
		return foundName;
	}

	public void setFoundName(String foundName) {
		this.foundName = foundName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getGameName() {
		return gameName;
	}

	public void setGameName(String gameName) {
		this.gameName = gameName;
	}

	public int getPlatId() {
		return platId;
	}

	public void setPlatId(int platId) {
		this.platId = platId;
	}

	public String getPlatName() {
		return platName;
	}

	public void setPlatName(String platName) {
		this.platName = platName;
	}

	public String getGameCode() {
		return gameCode;
	}

	public void setGameCode(String gameCode) {
		this.gameCode = gameCode;
	}

	public int getFictitiousNumber() {
		return fictitiousNumber;
	}

	public void setFictitiousNumber(int fictitiousNumber) {
		this.fictitiousNumber = fictitiousNumber;
	}

	

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getOpenLanguage() {
		return openLanguage;
	}

	public void setOpenLanguage(String openLanguage) {
		this.openLanguage = openLanguage;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	
	



	public int getFictitiousNumberMax() {
		return fictitiousNumberMax;
	}

	public void setFictitiousNumberMax(int fictitiousNumberMax) {
		this.fictitiousNumberMax = fictitiousNumberMax;
	}

	public int getGameType() {
		return gameType;
	}

	public void setGameType(int gameType) {
		this.gameType = gameType;
	}

	public String getGameTypeName() {
		return gameTypeName;
	}

	public void setGameTypeName(String gameTypeName) {
		this.gameTypeName = gameTypeName;
	}
	
	
	

	public Long getFoundTypeId() {
		return foundTypeId;
	}

	public void setFoundTypeId(Long foundTypeId) {
		this.foundTypeId = foundTypeId;
	}

	@Override
	public GameListInfo mapRow(ResultSet rs, int rowNum) throws SQLException {

		GameListInfo info = new GameListInfo();

		info.setId(rs.getInt("id"));

		info.setAreaId(rs.getString("area_id"));

		info.setAreaName(rs.getString("area_name"));

		info.setContent(rs.getString("content"));

		info.setFictitiousNumber(rs.getInt("fictitious_number"));

		info.setGameCode(rs.getString("game_code"));

		info.setGameName(rs.getString("game_name"));

		info.setOpenLanguage(rs.getString("open_language"));

		info.setPlatId(rs.getInt("plat_id"));

		info.setPlatName(rs.getString("plat_name"));

		info.setSort(rs.getInt("sort"));

		info.setStatus(rs.getInt("status"));

		info.setGameType(rs.getInt("game_type"));
		info.setGameTypeName(rs.getString("gname"));
		info.setFictitiousNumberMax(rs.getInt("fictitious_number_max"));
		
		info.setFoundTypeId(rs.getLong("found_type"));
		info.setFoundName(rs.getString("found_name"));
		info.setIsNotHot(rs.getInt("isnot_hot"));
		info.setIsNotTigerHot(rs.getInt("isnottiger_hot"));
		
		
		return info;
	}

}
